<?php
include(TPL.'head.html');
?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">Cron设置</h3>
	</div>
	<div class="panel-body">
		<form action="?m=setting&a=cron" method="post">
			<p>启用签到:<select name="enable[sign]" class="form-control"><option value="1" <?php if ($cron['sign']['enable']) echo 'selected'; ?>>启用</option><option value="0" <?php if (!$cron['sign']['enable']) echo 'selected'; ?>>禁用</option></select></p>
			<p>签到开始时间:<input type="text" name="time[sign]" class="form-control" value="<?php echo $cron['sign']['time']; ?>"/></p>
			<p>启用回贴:<select name="enable[reply]" class="form-control"><option value="1" <?php if ($cron['reply']['enable']) echo 'selected'; ?>>启用</option><option value="0" <?php if (!$cron['reply']['enable']) echo 'selected'; ?>>禁用</option></select></p>
			<p>回贴开始时间:<input type="text" name="time[reply]" class="form-control" value="<?php echo $cron['reply']['time']; ?>"/></p>
			<p>启用封禁:<select name="enable[ban]" class="form-control"><option value="1" <?php if ($cron['ban']['enable']) echo 'selected'; ?>>启用</option><option value="0" <?php if (!$cron['ban']['enable']) echo 'selected'; ?>>禁用</option></select></p>
			<p>封禁开始时间:<input type="text" name="time[ban]" class="form-control" value="<?php echo $cron['ban']['time']; ?>"/></p>
			<p>启用删帖:<select name="enable[del]" class="form-control"><option value="1" <?php if ($cron['del']['enable']) echo 'selected'; ?>>启用</option><option value="0" <?php if (!$cron['del']['enable']) echo 'selected'; ?>>禁用</option></select></p>
			<p><input class="btn btn-primary" name="submit" type="submit" name="op" value="保存"/></p>
		</form>
	</div>
</div>
<?php
include(TPL.'footer.html');
?>